package com.ruicar.afs.cloud.apply.pre.loan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.apply.common.entity.ApplyOprRecord;
import com.ruicar.afs.cloud.apply.pre.loan.condition.OrderOprCondition;

import java.util.List;

/**
 * @description: 订单操作记录服务类
 * @author: sijun.yu
 * @date: 2020/5/20 11:03
 */
public interface ApplyOprRecordService extends IService<ApplyOprRecord> {

    /**
     * 获取操作记录
     *
     * @param condition
     * @param page
     * @return
     */
    IPage<List<ApplyOprRecord>> getOprRecord(OrderOprCondition condition, Page page);

    /**
     * 搜索资产变更
     *
     * @param condition
     * @param page
     * @return
     */
    IPage<ApplyOprRecord> searchOprInfoForAssertChange(OrderOprCondition condition, Page page);

    /**
     * 搜索复议
     *
     * @param condition
     * @param page
     * @return
     */
    IPage<ApplyOprRecord> searchOprInfoForReconsider(OrderOprCondition condition, Page page);

    /**
     * 更新操作记录信息
     *
     * @param condition
     * @return
     */
    Boolean updateOprRecord(OrderOprCondition condition);

    /**
     * 更新del_flag
     *
     * @param condition
     * @return
     */
    Boolean updateDelFlag(OrderOprCondition condition);

    /**
     * 查询复议信息
     * */
    List<ApplyOprRecord> oprInfoForReconsider(String channeId,String status);
}
